// FIT_6204_Gorodilov_GreedyView.h : interface of the CFIT_6204_Gorodilov_GreedyView class
//


#pragma once


class CFIT_6204_Gorodilov_GreedyView : public CScrollView
{
protected: // create from serialization only
	CFIT_6204_Gorodilov_GreedyView();
	DECLARE_DYNCREATE(CFIT_6204_Gorodilov_GreedyView)

// Attributes
public:
	CFIT_6204_Gorodilov_GreedyDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // called first time after construct

// Implementation
public:
	virtual ~CFIT_6204_Gorodilov_GreedyView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnUpdateCount(CCmdUI *pCmdUI);

private: 
	CDC		*m_pDC;
	CBitmap *m_pBitmap;
	CBitmap *m_pOldBitmap;
	CBrush	*m_pPointBrush;
	CPen	*m_pPointPen;
	CPen	*m_pLinePen;
	CBrush	*m_pPointBrushPeeked;
	CBrush	*m_pPointBrushFocused;
	CPoint	m_MousePoint;
	UINT	m_iPointFocused;
	UINT	m_iPointPeeked;

public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEditMaketriangulation();
	afx_msg void OnEditShuffle();
	afx_msg void OnEditAddpoints();
	afx_msg void OnEditPrintlog();
	afx_msg void OnEditSettngs();
};

#ifndef _DEBUG  // debug version in FIT_6204_Gorodilov_GreedyView.cpp
inline CFIT_6204_Gorodilov_GreedyDoc* CFIT_6204_Gorodilov_GreedyView::GetDocument() const
   { return reinterpret_cast<CFIT_6204_Gorodilov_GreedyDoc*>(m_pDocument); }
#endif

